package mylibrary.comet;

import java.util.ArrayList;
import java.util.List;

public class Tes {

	public static void main(String[] args) {
		
		CometTest.ToHexString(null);
		
		CometTest t = new CometTest();
		t.ToHexString(null);
		
		List<Integer> l = new ArrayList<Integer>();
		l.add(1);
		l.add(4);
		
		sum(l);
		
		String s1 = "hello";
		String s2 = (String)passThrough((Object)s1);
		
		
		
		
	}
	
	
	
	static double sum(List<? extends Number> list) {
		double sum = 0.0;
		for(Number n:list) {
			sum += n.doubleValue();
		}
		
		Number x = new Integer(1);
//		list.add(new Integer(1));
		return sum;
	}
	

	static <T> T passThrough(T obj) {
		return obj;
	}
	
}
